<?php
class gyxj_user_tasksModel extends spModel
{
    public $pk = "id";
    public $table = "gyxj_user_tasks";

    /**
     * 获取用户任务状态
     * @param string $user_id 用户ID
     * @param int $task_id 任务ID
     * @return array|bool
     */
    public function getUserTaskStatus($user_id, $task_id)
    {
        return $this->find(['user_id' => $user_id, 'task_id' => $task_id]);
    }
}
?>